import httpFetch from './httpFetch.js'
// 登录
export const login = params => httpFetch('/api/Users/Login', params, "POST")

// 注c
export const register = params => httpFetch('/api/Users/Register', params, "POST")

// 获取首页数据
export const ticker = params => httpFetch('/api/swap/v3/instruments/ticker', params)

//全部指数
export const getAllIndex = params => httpFetch('/api/swap/v3/instruments/all_index', params)

//平台公告
export const getNotice = params => httpFetch('/api/Admin/Notice', params)

// 流水记录
export const finance = params => httpFetch('/api/Users/Finance', params, "POST")

// 绑定银行卡
export const bindCard = params => httpFetch('/api/Users/BindCard', params, "POST")

//k线图
export const getCandles = params => httpFetch('/api/futures/v3/instruments/candles', params)

//单个指数
export const getSingleIndex = params => httpFetch('/api/swap/v3/instruments/index', params)

//单个成交数据
export const getSingleTrades = params => httpFetch('/api/swap/v3/instruments/trades', params)

//单个深度
export const getSingleDepth = params => httpFetch('/api/swap/v3/instruments/depth', params)

//获取单个ticker信息
export const getSingleTicker = params => httpFetch('/api/swap/v3/instruments/ticker_one', params)

// 开仓
export const buy = params => httpFetch('/api/Currency/Buy', params, "POST")

// 平仓
export const sell = params => httpFetch('/api/Currency/Sell', params, "POST")


//持仓
export const haveCurrency = params => httpFetch('/api/Users/HaveCurrency', params)


// 充值
export const recharge = params => httpFetch('/api/Users/Recharge', params, "POST")

// 提现
export const withdraw = params => httpFetch('/api/Users/Withdraw', params, "POST")

//货币汇率
export const conversion = params => httpFetch('/api/Admin/conversion', params)

//修改密码
export const revisePwd = params => httpFetch('/api/Users/RevisePwd', params, "POST")

//新建 修改 资金密码
export const moneyPwd = params => httpFetch('/api/Users/MoneyPwd', params, "POST")

//核实资金密码
export const isMoneyPwd = params => httpFetch('/api/Users/IsMoneyPwd', params, "POST")

//历史记录
export const saleRecord = params => httpFetch('/api/Users/SaleRecord', params, "POST")

//用户基本信息
export const getUserContent = params => httpFetch('/api/Users/Content', params, "POST")


//问题反馈（提交）
export const feedBack = params => httpFetch('/api/Users/FeedBack', params, "POST")

//问题反馈（数据）
export const feedBackList = params => httpFetch('/api/Users/FeedBackList', params)

//添加自选
export const addOptional = params => httpFetch('/api/Users/AddOptional', params, "POST")

//获取自选
export const optionalAll = params => httpFetch('/api/Users/OptionalAll', params, "POST")

//获取快讯
export const liveList = params => httpFetch('/api/Admin/LiveList', params, "POST")














